package stu.aistar.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import stu.aistar.model.pojo.User;

@Repository
public interface UserMapper extends JpaRepository<User,Integer> {
    User findUserByPhone(String phone);
    User findUserByPhoneAndPassword(@Param("phone") String phone,@Param("password") String password);
}
